package com.byit.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 系统码表
 * </p>
 *
 * @author wangx
 * @since 2018-12-11
 */
@Data
@TableName("sys_dict")
public class SysDict extends Model<SysDict> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 码值类型
     */
    @TableField("dict_type")
    private String dictType;
    /**
     * 码值类型描述
     */
    @TableField("dict_desc")
    private String dictDesc;
    /**
     * 码值
     */
    @TableField("dict_code")
    private String dictCode;
    /**
     * 码值说明
     */
    @TableField("dict_value")
    private String dictValue;
    /**
     * 是否删除
     */
    @TableField("is_del")
    private Integer isDel;
    /**
     * 排序
     */
    @TableField("order_by")
    private Integer orderBy;
    /**
     * 插入时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 操作人Id
     */
    @TableField("operation_id")
    private Long operationId;

    /**
     * 是否显示 0不显示 1显示
     */
    @TableField("is_display")
    private Integer isDisplay;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDict{" +
                ", id=" + id +
                ", dictType=" + dictType +
                ", dictDesc=" + dictDesc +
                ", dictCode=" + dictCode +
                ", dictValue=" + dictValue +
                ", isDel=" + isDel +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", operationId=" + operationId +
                ", isDisplay=" + isDisplay +
                "}";
    }
}
